<br /><br />
{messages block='ProfileSettings'}
{$jsValMess}

<form method="post" action="{url link='public.account.settings.profile'}">
<br />
<br />
<table style="width:100%;">
    <tr>
        <td style="width:20%;text-align:right;font-size:10pt;" class="color">{language text="headline"}:</td>
        <td style="width:80%;font-size:8pt;" class="color">
        <div class="border13">
        <div style="padding:5px;"><input type="text" name="aUser[headline]" value="{$aUser.headline|escape}" size="45" onfocus="this.className='inputmain';" onblur="this.className='';" /></div>
        </div>
        </td>
    </tr>
	{foreach from=$aFields item=aField}
    <tr>
        <td style="width:20%;text-align:right;font-size:10pt;" class="color">{language translate=$aField.custom_field_name}:</td>
        <td style="width:80%;font-size:8pt;" class="color">
        <div class="border13">
        <div style="padding:5px;">
            <select name="field_option[{$aField.custom_field_id}]" style="width:150px;">
            	{if !getParam('setting_default')}
            	<option value="">{language text="option.select"}</option>
            	{/if}
            	{html_options options=$aField.options selected=$aField.selected translate='true'}
            </select>
        </div>
        </div>
        </td>
    </tr>
	{/foreach}
</table>

{if count($aTextFields)}
<br />
<br />
<div style="text-align:right;">
    BBcode: <a href="javascript:void(0);" onclick="popUp2('{url link='public.popup.htmlguide'}','500','500','yes','200','100');">{language text="on"}</a>
    |
    HTML: {if $bIsHtml}{language text='on'}{else}{language text='off'}{/if}</div>
<br />
<table style="width:100%;">
    {section name=I loop=$aTextFields}
    <tr>
        <td style="width:20%;text-align:right;font-size:10pt;vertical-align:top;" class="color">{language translate=$aTextFields[I].custom_field_name|strtolower|ucwords}:</td>
        <td style="width:80%;font-size:8pt;" class="color">
        <div class="border13">
        <div style="padding:5px;"><textarea cols="50" rows="10" name="text_option[{$aTextFields[I].custom_field_id}]" onfocus="this.className='textarea';" onblur="this.className='';">{$aTextFields[I].textarea|escape}</textarea></div>
        </div>
        </td>
    </tr>
    {/section}
</table>
{/if}

<div style="padding:6px;">
<table style="width:100%;">
    <tr>
        <td style="width:20%;text-align:right;font-size:10pt;" class="color"><br />
        </td>
        <td style="width:80%;font-size:8pt;" class="color"><br />
        <input type="submit" value=" {language text="save_profile_settings"} " name="act[update]" style="cursor:pointer;" class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" /></td>
    </tr>
</table>
</div>
</form>